package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import java.beans.Transient;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 百度消费数据表（原始数据）
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "origin_baidu", catalog = "ysanalyze")
public class OriginBaidu implements java.io.Serializable {

	private Integer id;
	/**文件导入时间*/
	private Date importDate;
	/**文件导入者*/
	private Integer userId;
//	/**所属行业id*/
//	private Integer industryId;
	/**代运营公司id*/
	private Integer companyId;
	/**代运营公司账号id*/
	private Integer accountId;
	/**推广日期*/
	private Date promotionDate;
	/**推广计划*/
	private String promotionPlan;
	/**推广单元*/
	private String promotionUnit;
	/**推广关键词*/
	private String promotionKeyword;
	/**搜索关键词*/
	private String keywordSearch;
	/**当前单元的添加状态*/
	private String addState;
	/**展现量*/
	private int numberExhibit;
	/**点击量*/
	private int numberClick;
	/**消费*/
	private double consume;
	/**点击率*/
	private String clickRate;
	/**总转化量*/
	private int totalnumberConsult;
	/**精确匹配扩展(地域词扩展)触发*/
	private String exactMatch;
	/**高级精确匹配触发*/
	private String hightExactMatch;
	/**消费转化比*/
	private double consumeConsultRate;
	/**所属象限标志（1,2,3,4，delete，other）*/
	private String quadrantTag;


	public OriginBaidu() {
	}

	public OriginBaidu(Integer companyId, Integer accountId, Date promotionDate, String promotionPlan, String promotionUnit, String promotionKeyword,
			String keywordSearch, int numberExhibit, int numberClick, double consume, String clickRate,
			int totalnumberConsult, String exactMatch, String hightExactMatch, double consumeConsultRate, 
			String quadrantTag, Date importDate, Integer userId, String addState,double conversionRate) {
		this.companyId = companyId;
		this.accountId = accountId;
		this.promotionDate = promotionDate;
		this.promotionPlan = promotionPlan;
		this.promotionUnit = promotionUnit;
		this.promotionKeyword = promotionKeyword;
		this.keywordSearch = keywordSearch;
		this.numberExhibit = numberExhibit;
		this.numberClick = numberClick;
		this.consume = consume;
		this.clickRate = clickRate;
		this.totalnumberConsult = totalnumberConsult;
		this.exactMatch = exactMatch;
		this.hightExactMatch = hightExactMatch;
		this.consumeConsultRate = consumeConsultRate;
		this.quadrantTag = quadrantTag;
		this.importDate = importDate;
		this.userId = userId;
		this.addState = addState;

	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "account_id", nullable = false)
	public Integer getAccountId() {
		return this.accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	@Column(name = "promotion_plan", nullable = false, length = 100)
	public String getPromotionPlan() {
		return this.promotionPlan;
	}

	public void setPromotionPlan(String promotionPlan) {
		this.promotionPlan = promotionPlan;
	}

	@Column(name = "promotion_unit", nullable = false, length = 100)
	public String getPromotionUnit() {
		return this.promotionUnit;
	}

	public void setPromotionUnit(String promotionUnit) {
		this.promotionUnit = promotionUnit;
	}

	@Column(name = "promotion_keyword", nullable = false, length = 100)
	public String getPromotionKeyword() {
		return this.promotionKeyword;
	}

	public void setPromotionKeyword(String promotionKeyword) {
		this.promotionKeyword = promotionKeyword;
	}

	@Column(name = "keyword_search", nullable = false, length = 100)
	public String getKeywordSearch() {
		return this.keywordSearch;
	}

	public void setKeywordSearch(String keywordSearch) {
		this.keywordSearch = keywordSearch;
	}

	@Column(name = "number_exhibit", nullable = false)
	public int getNumberExhibit() {
		return this.numberExhibit;
	}

	public void setNumberExhibit(int numberExhibit) {
		this.numberExhibit = numberExhibit;
	}

	@Column(name = "number_click", nullable = false)
	public int getNumberClick() {
		return this.numberClick;
	}

	public void setNumberClick(int numberClick) {
		this.numberClick = numberClick;
	}

	@Column(name = "consume", nullable = false, precision = 32, scale = 2)
	public double getConsume() {
		return this.consume;
	}

	public void setConsume(double consume) {
		this.consume = consume;
	}

	@Column(name = "click_rate", nullable = false, length = 50)
	public String getClickRate() {
		return this.clickRate;
	}

	public void setClickRate(String clickRate) {
		this.clickRate = clickRate;
	}

	@Column(name = "totalnumber_consult", nullable = false)
	public int getTotalnumberConsult() {
		return this.totalnumberConsult;
	}

	public void setTotalnumberConsult(int totalnumberConsult) {
		this.totalnumberConsult = totalnumberConsult;
	}

	@Column(name = "exact_match", length = 50)
	public String getExactMatch() {
		return this.exactMatch;
	}

	public void setExactMatch(String exactMatch) {
		this.exactMatch = exactMatch;
	}

	@Column(name = "hight_exact_match", length = 50)
	public String getHightExactMatch() {
		return this.hightExactMatch;
	}

	public void setHightExactMatch(String hightExactMatch) {
		this.hightExactMatch = hightExactMatch;
	}

	@Column(name = "consume_consult_rate", nullable = false, precision = 32, scale = 3)
	public double getConsumeConsultRate() {
		return consumeConsultRate;
	}

	public void setConsumeConsultRate(double consumeConsultRate) {
		this.consumeConsultRate = consumeConsultRate;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "import_date", nullable = false, length = 19)
	public Date getImportDate() {
		return importDate;
	}

	public void setImportDate(Date importDate) {
		this.importDate = importDate;
	}

	@Column(name = "add_state", nullable = false, length = 50)
	public String getAddState() {
		return addState;
	}

	public void setAddState(String addState) {
		this.addState = addState;
	}

	@Column(name = "quadrant_tag", length = 50)
	public String getQuadrantTag() {
		return quadrantTag;
	}

	public void setQuadrantTag(String quadrantTag) {
		this.quadrantTag = quadrantTag;
	}

	@Column(name = "company_id", nullable = false)
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

//	@Column(name = "industry_id", nullable = false)
//	public Integer getIndustryId() {
//		return industryId;
//	}
//
//	public void setIndustryId(Integer industryId) {
//		this.industryId = industryId;
//	}

	@Temporal(TemporalType.DATE)
	@Column(name = "promotion_date", nullable = false, length = 19)
	public Date getPromotionDate() {
		return promotionDate;
	}

	public void setPromotionDate(Date promotionDate) {
		this.promotionDate = promotionDate;
	}


}
